function [a, P] = Dribble(P)

    %a = 'kick 5 0';
    P_X=P{1}(1);
    P_Y=P{1}(2);
    P_theta=P{1}(3);
    P_num = P{3};
    
    Sk_Y = P_Y;
    
    if P{2} == 'r'
        Sk_X = P_X + 5; % if the player is on the red team, kick to the right
    else
        Sk_X = P_X - 5; % if the player is on the blue team, kick to the left
    end
    
    angle=atan2(Sk_Y-P_Y,Sk_X-P_X)/pi*180 - P_theta;    % compute the angle
    
    if(angle<0)
        angle=angle+360;    % correct the angle
    end
    
    a = sprintf('kick %d %d', 7, round(angle)); 
    
end
